package com.infore.common.model.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.infore.common.base.BaseModel;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;

/**
 * <p>
 * 目标数据源联合主键
 * </p>
 *
 * @author shaolay
 * @since 2022-12-13
 */
@TableName("stat_target_union")
public class StatTargetUnion extends BaseModel<StatTargetUnion> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;
    /**
     * 统计任务id
     */
    @TableField("task_id")
    private Integer taskId;
    /**
     * 联合键
     */
    @TableField("union_field")
    private String unionField;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getUnionField() {
        return unionField;
    }

    public void setUnionField(String unionField) {
        this.unionField = unionField;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StatTargetUnion{" + ", id=" + id + ", taskId=" + taskId + ", unionField=" + unionField + "}";
    }
}
